package com.margo.project.web.filter;

import java.io.IOException;

import javax.servlet.FilterChain;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;
import org.springframework.web.filter.OncePerRequestFilter;

@Component
public class MargoOncePerRequestFilter extends OncePerRequestFilter{
	
	Logger logger=LoggerFactory.getLogger(this.getClass());
	
	public MargoOncePerRequestFilter() {
		super();
		logger.info("MargoOncePerRequestFilter初始化...................");
	}

	@Override
	protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain)
			throws ServletException, IOException {
		//logger.info("MargoOncePerRequestFilter拦截doFilterInternal...................");
		filterChain.doFilter(request, response);
	}

}
